package com.moduls.interfaceFunction.core;

public class ResultGenerator {
    private static final String DEFAULT_SUCCESS_MESSAGE = "OK";
    public static Result results;
    public static Result genSuccessResult() {
    	results.setStatus(1);
    	results.setMessage(DEFAULT_SUCCESS_MESSAGE);
        return results;
    }

    public static Result genSuccessResult(Object data) {
    	results.setStatus(1);
    	results.setMessage(DEFAULT_SUCCESS_MESSAGE);
    	results.setResult(data);
        return results;
    }

    public static Result genFailResult(String message,int status) {
    	results.setStatus(status);
		results.setMessage(message);
        return results;
    }
}
